home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
bbs
/
t_rng200.zip
/
RINGUP.US
< prev
next >
Wrap
Text File
|
1997-08-04
|
37KB
|
754 lines
;
; RINGUP Configuration file
;
; Ringup/Event-Handler for Terminate
; Version 2.00
;
; Copyright (c) 1996,97
; Marcus Roeckrath
; Vikarsbusch 8
; 48308 Senden
; Germany
;
; Fido : 2:2449/523
; E-Mail: mroeckrath@hmb.westf.fido.de
;
; Support-Telefon: 49-2536-9942
; Mailer/BBS : 49-2536-9943 (ISDN X.75, Modem V.34)
;
;
; This program and all belonging files were developed/written and tested
; very carefully. Nevertheless I can not exclude any bugs in program or
; documentation. Because I am not a native english speaker I can not
; exclude faults when translating the german documentation. In no event
; I will be liable to you for additional damages, including any lost of
; profits, lost savings, or any other incidential or consequential damages
; arising out of the use or inability to use the program or its documentation.
; Specially I do not guarantee that your phone bill will be decreased using
; the event functionality of the program.
;
;
; You are allowed to test the shareware version for 30 days. After this
; period you have to register or to delete the program. Read RINGUP.REG
; for all neccessary information about registering RINGUP.
;
; The registration is for the purpose of obtaining a license to use RINGUP
; and that this licence does not grant me any rights of ownership of the
; software or any rights to the copyright. It is not allowed to reassemble
; or to modify the program.
;
; The shareware version is restricted in the following functions:
;
; 1. Only one event
; 2. No scanning of the outbound (for automatical Non-Boss-Calls)
;
;
; One registration is valid only for the use of the program on one computer,
; therefor you have to order a license for every pc you on which you want
; to use RINGUP. Please look at the file RINGUP.REG for more information
; about registering RINGUP.
;
;
; Terminate 5 has a built-in double device watching and event handling
; but without having the same functionality RINGUP has.
;
;
; Installation (recommendation):
;
; 1. Change to the home directory of Terminate.
; 2. Create a subdirectory in the home directory of Terminate named RINGUP.
; 3. Change to this subdirectory.
; 4. Copy RINGUP.TSC, RINGUP.BAT, RINGUP.US, CALLOUT.BAT and STARTBBS.BAT
; to this subdirectory.
; 5. Rename RINGUP.US to RINGUP.CFG.
; 6. Configure the files RINGUP.BAT, RINGUP.CFG, CALLOUT.BAT and STARTBBS.BAT.
; 7. If you have registered RINGUP copy the keyfile RINGUP.KEY you got from
; me to the same directory where RINGUP.CFG is stored.
;
; Read this document very carefully!
;
;
; ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION
;
; Copy or rename this file to RINGUP.CFG.
;
; You must not write protect this file because the script has to actualize
; this file! If you alter this file in the programs dos shell all changes
; will be lost when the script will actualize this configuration file
; itself. If you want to change the configuration please terminate the
; script or use the menu option "EDIT RINGUP.CFG".
;
; When updating from earlierer versions you have to adjust the configuration
; file RINGUP.CFG because I changed the structure of the configuration file
; and new options were added. You have to adjust RINGUP.BAT also because
; an internal errorlevel (245) was added and the handling of incoming calls
; was changed. Please read the file HISTORY.DOC and IMPORTAN.DOC for more
; informations.
;
; This script was developed using PreScription from Terminate 5.0. This script
; does NOT work under earlier versions of Terminate.
;
; Some lines of this configuration file are longer than 80 characters. Never
; split this lines! Please use an editor which can handle long lines without
; splitting them. The DOS editor is able to handle lines with more than
; 80 characters.
;
; To speed up the script start you can erase all comment lines from this
; file. You are not allowed to erase the ruler lines or to change the sequence
; of the common definitions (keywords) and the other definition parts. The
; configuration part of this file begins with [Config] later in this file.
;
; ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION
;
;
; You have to do the following settings in the Terminat setup section:
;
; 1. Restore port on close "No" (Configuration/Communication)
; 2. Set first Host device to "current device" (Configuration/Host settings)
; 3. Redial tries (Configuration/Point system) not to 0 or a great value
; because Terinate will make unlimited or a great number of attempts
; to connect when making a point system event (Boss call or Outbound
; call).
; 4. Set "Force initstring" (Configuration (Alt-O)/Modem and dialling) to "No".
;
;
; You have to start the script using a batch file. A sample batch file
; RINGUP.BAT is included in this package. This batch file and the settings
; in the configuration part of this file are examples which you have to
; adjust.
;
; The script RINGUP.TSC watches up to two devices for rings. If a ring is
; detected the script will terminate itself and Terminate returning a specific
; errorlevel. The batch file RINGUP.BAT will take over control. Use different
; errorlevels for the devices to avoid conflicts. In this version I imple-
; mented a special service for device 1 which makes it possible to make
; different handling of calls and to watch the analogue Modem (2. device)
; via the 1. device depending on additional information in the ring message.
; You can uses this feature if your hardware will send a ring message like
; "RING [info]" which you will get only in ISDN networks nowadays.
;
;
; This script should works with all kinds of devices you can define in
; Terminate itself with the exception of the internal Capi device. The script
; works well with UART, Capi/Cfos and fossil devices. It was not tested
; with Int 14 and Digiboard interface.
;
; There is no way to use ISDN with the internal Capi device!
;
; If you wish the script answers the call and exits only if a carrier is
; recognized. This way to work is neccessary if you want to call the Ter-
; minate hostmode using the command TERMINAT /DEVICE:n /HOST /LOGIN because
; then Terminate requires a carrier. If you do not use the LOGIN parameter
; the Terminate hostmode (and Terminate) is not closed when the carrier
; disappears. RINGUP should not answer the call If you want to call a mailer.
; In this case you have to disable this feature. RINGUP does not detect
; the mode of the call (fax, voice, data) when answering the call; in some
; cases this can be determined analyzing the ISDN service indicator (only
; on 1. device).
;
; Before the script will shutdown after ring detection or after making
; a connect it will create the batch file BBS.BAT containing the following
; line:
;
; @[ringup directory]\STARTBBS.BAT <Errorlevel> <Device> <Port> <Baud> <Time to next event> <Anrufstatus> <Ring-Info> <Datum_Zeit>
;
; The meaning of the parameters is described in the file STARTBBS.BAT. You
; have to adjust the file STARTBBS.BAT to your requirements.
;
,
; If one of the 64 possible events arises the script will terminate with
; the errorlevel defined for the special event or starts a program directly.
; The script is unable to test wether the event was succesfully executed by
; the external program. The script will mark the event as executed by actua-
; lizing the last date in the RINGUP.CFG file. Normally you have to use
; different errorlevels for each event except you want to assign the same
; action to several events, f. e. you want to call your fido boss twice a
; day.
;
; If you do not define any event in the configuration file the event
; functionality of the script is shut off.
;
; If an event was missed because f. e. a user called your Terminate host
; during the whole time interval of an event, the script will not proceed
; this event outside the defined time interval. This event will be exe-
; cuted when it normally arises the next day. You can make sure that each
; event is started using special options (read later in this document:
; Keyword NORING and parameter %5 in STARTBBS.BAT).
;
; The scripts displays the next 16 events (sorted on execution time) only.
;
;
; To use the Non-Boss-Calls feature you have do put the file OUT_ALL.BAT
; (or OUTnnnn.BAT - nnnn = zone) into one of the errorlevel sections of
; the RINGUP.BAT file (CALL <Path>OUT_ALL.BAT resp. CALL <Path>OUTnnnn.BAT).
; The RINGUP script creates these batch files in the same directory where
; the RINGUP.LOG file is placed in and contains
;
; @CALL <Ringup path>CALLOUT.BAT <nodenumber>
;
; one line for each nodenumber found in your outbound. The outbound is
; scanned every time you start RINGUP, you call one of the free definable
; menu slots, you edit this configuration file (via menu) or an event was
; made. You have to adjust the file CALLOUT.BAT to your requirements. If you
; do not wish to call special nodenumbers you have either to exclude this
; nodes (look later in this file: Keyword EXNODE) or you have to set the
; status of this outbound files to HOLD. The script scans the outbound for
; the following file extensions: CLO, CUT, ILO, IUT, FLO, FUT, DLO, DUT and
; REQ.
;
; Point directories within the outbound are NOT scanned. Therefore it is
; not possible to send crashmails or request directly to points with an
; event.
;
;
; The RINGUP archiv contains a sample RINGUP.BAT file which you have to edit
; to fit your situation. Please do not change the sections which belongs to
; the errorlevels 245-255 because these are defined for internal use.
;
; List of all errorlevels used by RINGUP:
;
; 255 : Normal termination of RINGUP
; 254 : Calls Terminate
; 253 : not used yet, but reserved for future internal use
; 252 : not used yet, but reserved for future internal use
; 251 : Shows RINGUP.LOG
; 250 : Edits RINGUP.CFG
; 249 : Shows TERMINAT.LOG
; 248 : RINGUP can not find the configuration file RINGUP.CFG
; 247 : invalid key file RINGUP.KEY
; 246 : RINGUP.TSC was modified
; 245 : low memory
;
;
; The RINGUP script has to be started from the batch file RINGUP.BAT only!
;
; RINGUP.TSC has to be stored in the script directory of Terminate or in
; a directory which can be reached by a relativ path from the script direc-
; tory of Terminate. You are not allowed to store RINGUP.TSC on a drive which
; is different from the drive where Terminate is stored. By default the
; scripts assumes that SCRIPT\ is the script directory of Terminate. You can
; store all other file of RINGUP in any drive or directory you like. Start
; parameters are used to tell RINGUP and Terminate where to find the files.
; Please study the following example that you are able to handle these
; parameters correct:
;
; 1. example (common definition)
;
; <Path>TERMINAT /SCRIPT:<RINGUP-scriptpath>RINGUP <Path to other RINGUP f.>
;
; <Path> : Terminate home directory
; <RINGUP-scriptpath> : Path to RINGUP.TSC (You have to write this as relativ
; path to Terminates script directory). Only neccessary
; if RINGUP.TSC is NOT placed in Terminates script
; directory.
; <Path to other RINGUP f.> : Path to the other RINGUP files (RINGUP.CFG,
; RINGUP.KEY, RINGUP.LOG and RINGUP1.BAT). You
; have to specify this parameter if this files
; are NOT placed in the subdirectory SCRIPT\ of
; Terminates home directory.
;
; 2. example
;
; All files of RINGUP are placed in the subdirectoy SCRIPT\ of Terminates
; home directory which is also the script directory of Terminate; use:
; <Path>TERMINAT /SCRIPT:RINGUP
;
; 3. example
;
; SCRIPT\ is Terminates script directory where also the compiled script
; RINGUP.TSC is placed. All other RINGUP files are placed in the subdirectory
; RINGUP\ of Terminate home directory; use:
; <Path>TERMINAT /SCRIPT:RINGUP <Path>RINGUP\
;
; 4. example
;
; ABCDE\ is Terminates script directory. All RINGUP files are placed in
; the subdirectory RINGUP\ of Terminates home directory; use:
; <Path>TERMINAT /SCRIPT:..\RINGUP\RINGUP <Pfad>RINGUP\
;
;
; The menu (call it pressing the <ESC> key) of RINGUP contains the following
; funktions:
;
; 1. Show the RINGUP.LOG file via external Viewer or errorlevel 251 executed
; by the batch file.
; 2. Edit the RINGUP.CFG file via external editor or errorlevel 250 executed
; by the batch file
; 3. Show the TERMINAT.LOG file via external Viewer or errorlevel 249
; executed by the batch file.
; 4. Reinitialize the device(s)
; 5. Start event additional (means that the last date of this event
; will not be actualized)
; 6. Start event mark as done (means that the last date of this event will
; be set to todays date)
; 7. Actualize event date. In this case the last date will be set to todays
; date and this event at the earliest will be executed automatically
; the next day.
; 8. Deactivate event (The event will be marked with ; in the configuration
; file.)
; 9. Call Terminate via errorlevel 254 executed by the batch file.
; 10. User definable menu slot (errorlevel / direct program execution)
; 11. User definable menu slot (errorlevel / direct program execution)
; 12. User definable menu slot (errorlevel / direct program execution)
; 13. User definable menu slot (errorlevel / direct program execution)
; 14. User definable menu slot (errorlevel / direct program execution)
; 15. User definable menu slot (errorlevel / direct program execution)
; 16. User definable menu slot (errorlevel / direct program execution)
; 17. User definable menu slot (errorlevel / direct program execution)
; 18. User definable menu slot (errorlevel / direct program execution)
; 19. Quit RINGUP (errorlevel 255)
;
; The menu options 1, 2, and 3 are started either using an Execute procedure
; or via errorlevel executed by the batch file. You can decided in which way
; the script have to do it (Keyword VIAEXEC, see later in this file).
;
; Because the menu could only be started between the main functions of the
; script (event searching, watching device 1, watching device 2) it is
; possible that you have to wait some seconds until the menu appears after
; pressing the <ESC> key, especially if the script is watching a device.
; You are allowed to press this key every time you want to do so. Please do
; not press the <ESC> key twice because this will close the menu directly
; after appearing on the screen.
;
;
; You can delete or shorten the RINGUP.LOG file every time you want to do it.
; You can also define a maximum size of the log file (Keyword L_SIZE). If
; this maximum size is exceeded the log file will be shortened to half the
; maximum size at startup. When the scripts starts the last 4 lines of the
; log file are shown in the lower part of the screen. If you detect an error
; message f. e. "Device not ready" in the log window please look at the date
; and time stamp of this message. Maybe this error has occured during an ear-
; lier use of RINGUP.
;
;
; The settings in the following configuration part of this file are EXAMPLES
; only. Please change them them to fit your situation.
;
;
;[Config]
;
; The keyword KBDPWD defines a password which you have to use to unlock the
; keyboard after locking it. The password must have a maximum length of 8
; characters containing the ascii characters 34 to 127. If the password
; followed by a ! a alarm peep is made when a wrong password is entered.
; All enterings of a wrong password are documented in the log file. The
; script will stop working for 30 seconds every time a wrong password is
; entered three times. You have 15 seconds to enter the password. If the
; keyboard is locked it will be also when script restarts after event exe-
; cution or operationg on a call (semaphore file "KEYBLOCK.RNG"). If the
; Keyboard is locked and you want to enter the menu you have to enter the
; password first. You have to relock the keyboard manually. If you comment
; out this keyword you are not able to lock the keyboard.
;
;KBDPWD password!
;
;
; The keyword L_SIZE defines the maximum size (in KB) of the log file
; RINGUP.LOG. If this size is exceeded the log file is shortened to half
; maximum size. If you put 0 in here the log file is never shortened.
;
L_SIZE 128
;
;
; The keyword VIAEXEC controls the manner how the script has to call external
; programs (menu options 1-3). If you deactivate it by typing ; in front of
; VIAEXEC the script will use the internal Execute procedure otherwise the
; script will terminate using those errorlevels defined above in this file.
; On some computers I have detected problems when using the internal Excute
; method. If such an problem occurs the computer will hang after returning
; from the external program.
;
;VIAEXEC
;
;
; The keyword VIEWER defines an external file viewer.
;
VIEWER C:\DOS\EDIT.COM
;
;
; The keyword EDITOR defines an external ASCII file editor.
;
EDITOR C:\DOS\EDIT.COM
;
;
; Terminate pointsystem outbound, same as defined in Terminate and TerMail.
; Complete path (f. e. C:\TER500\OUT\ZONE\) or relativ path in relation to
; the home directory of Terminate (f. e. OUT\ZONE\).
;
OUTDIR OUT\ZONE\
;
;
; Put in your main aka which must the same as defined in Terminate.
;
ADRESS 2:2448/10.67
;
;
; Please list all nodenumbers which you want to exclude from the outbound
; scan. As a rule these should be the Akas of your boss(es). The scripts
; only accepts as many exclusions as they fit into a string variable of
; 255 bytes length (including seperation bytes).
;
; You can use one wildcard "*" either in net or node part of the nodenumber.
; The wildcard has to be the last sign in a nodenumber. Here some example:
;
; 2:* exclude all nets of zone 2
; 2:24* exclude all nets of region 24 in zone 2
; 2:2448/* exclude all nodes of net 2448 in zone 2
; 2:2448/1* exclude all nodes of net 2448 in zone 2 if their node starts
; with 1
;
;
EXNODE 2:2449/500
EXNODE 2:2449/501
EXNODE 2:2449/514
EXNODE 2:2449/520
EXNODE 21:497/5000
EXNODE 161:*
EXNODE 567:*
;
;
; The keyword SEARCH defines a time period (in seconds) which had to pass
; before the script will do the next event searching. Because the script
; calculates the time to the next event you should set this value to 86400
; (24 hours). The script will choose the correct value itself to start the
; event searching. The script always uses the minimum of the value you
; defined here and that the script calculates itself. Please notice that
; the main loop of the script has the sequence "event searching - watching
; device 1 - watching device 2". Therefore the event searching normally is
; not executed when the defined time period is exactly over. As a rule the
; time period between two event searchings is a little bit longer than the
; defined time period. To get the maximum time period add the time for the
; watching on two devices to the search time.
;
SEARCH 86400
;
;
; The keyword NORING defines a time period (in seconds) in which no ring
; watching is done before a event takes place.
;
NORING 120
;
;
; How many devices (0,1,2) has the script to watch for rings. If you have
; defined 2 devices (device definition later in this file) but you want
; to watch device 1 only (especially if you want to use the special recogni-
; tion functions on ISDN device) you have to enter 1 at this keyword.
;
DWATCH 2
;
;
; The keyword R_TIME defines the time period the script has to look for a
; ring before doing something else. You have to declare a time period which
; is long enough to get one ring in this period. You have to write this
; time period as thousandth. In Germany a value of 5500 (= 5.5 seconds) will
; work well. If you watch device 1 only you can try a value of 2005 which
; will give you faster access to the menu.
;
R_TIME 5500
;
;
; If you watch device 2 using the special features of device 1 the next
; options determinates the manner how to react if device 1 recognizes a ring
; for device 2. WAIT <thousandth seconds> means that the script should wait
; this time period before it will continue working on this call. RING means
; that the scripts will test if the ring appears on device 2 also. If you
; define 0 as time period the script will continue immediately. You are
; allowed to activate one of these lines only.
;
SWITCH WAIT 5000
;SWITCH RING 5500
;
; The keyword REJECT defines an AT command which forces the script to reject
; a call on device 1 only. If you are using CFos you have to use AT\H1 while
; you have to enter AT\K using the external terminal adapter Elink 310.
;
REJECT AT\H1
;
;
; The keyword FERROR determines the manner RINGUP will react on a ring in the
; following cases:
; - The caller was rejected because there is no mail for him (Freepoll).
; - After answering the call it was not possible to make an connect.
; - A ring on device 1 (special feature on ISDN device watching analogue
; device 2) could not recognized on device 2.
; Activating this keyword you can force to close the script in this fault
; cases. Then you have to work on this call within the batch file STARTBBS.BAT
; so that a correct reaction in this cases is guaranteed. The parameters
; in STARTBBS.BAT will give you all informations needed (read the explana-
; tions in this batch file).
;
;FERROR
;
;
;
; The user definable menu slots
;
; It is not allowed to overstep and to change the sequence of each field.
; You have either enter a value for errorlevel or a program name.
;
; You have not the right to use 0 (because this terminates the script with
; return to Terminate) and 245 to 255 (reserved for internal use; see above)
; as errorlevel.
;
; Menu Option: Description which is displayed as menu text.
; Error : Errorlevel which is used when closing the script. Only needed
; if you start a program which should not be started from the
; script directly (f. e. a programm which uses the same ports
; as the script or Terminate).
; Program : Path and name of a program including all parameters needed.
; You can use all special parameters of Terminate (!M, !CD, !E,
; ...; Never use !E calling batch files!).
; Defining @SCRIPT <script name> you can call other terminate
; scripts which unfortunately does not work in all cases.
;
; If you define a menu option without program name and errorlevel 0 you can
; not access this menu option. You can use this to force programs to a
; fixed menu slot how I made it with the menu slot "DOS-Shell".
;
;Definable menu options (maximal 9 are activ)
;Menu Option Error Program
;------------------------| |---| |------------------------------------------------------------------------------------------------------------------------------|
TerMail C:\TER500\TERMAIL\TM.EXE !M !E
Terminate User Config C:\TER500\TERMINAT.EXE /USER !M !E
Filemanager C:\TER500\TERMINAT.EXE /F !M !E
User definable menu slot 0
User definable menu slot 0
User definable menu slot 0
User definable menu slot 0
User definable menu slot 0
DOS-Shell COMMAND.COM !M !E
;
;
; Special features for device 1
;
; If you get additional information in the ring message from your communi-
; cation hardware RINGUP is able to analyze this informations. Normally you
; can get this informations using ISDN. Configuring the drivers (CFos and
; CAPI) correctly, you will get a RING message like:
;
; RING <caller id>/EAZ<n>/<service indicator>
;
; This makes it possible to detect analogue callers via an ISDN interface card
; or a ISDN modem, because analogue callers will have the service indicators
; 0101, 0102, 0201 und 0202 while X.75 callers will present 0700.
;
; Comparing these ring informations with the special strings you defined
; it is possible
;
; - to watch device 2 without switching to device 2.
; - to react on a call highly differential.
;
; The script will use the first special case which matches the information of
; the ring string. Therefor you have think about the sequence of the special
; cases very carefully.
;
; It is not allowed to overstep and to change the sequence of each field.
; You have to enter the A column while you have to fill out the Aka only if
; you need them.
;
; You have not the right to use 0 (because this terminates the script with
; return to Terminate) and 245 to 255 (reserved for internal use; see above)
; as errorlevel.
;
; String1-3: Characters which have to be found in the ring message.
; Time : Time period for this special case. You are not allowed to define
; time periods which passes midnight f. e. 23:00-5:00. The script
; uses 24 hour clock always.
; Error : Errorlevel which is used for this special case. If you place a
; "$" sign in front of the errorlevel the ring will be processed by
; the 2. device (f. e. a analogue caller was recognized by device
; 1). Using this feature you have to define the second device. If
; you put a "-" in front of the errorlevel or instead of the error-
; this call will be rejected; if an errorlevel is defined in this
; case the script will terminate which this errorlevel and you
; have to work on this call in the file STARTBBS.BAT (f. e. making
; a callback).
; A : Set to (capital) Y if the script should answer an incoming call;
; if not write (capital) N. You have to set "Restore port on close"
; to "No" in the Terminate Configuration/Communication otherwise
; Terminate will drop down the carrier when terminating the script.
; Aka1-6 : Enables a so called freepoll feature. A caller is rejected if
; there is no mail for him found in binkley outbound. You have to
; write the Akas in a hexadezimal format of exactly 13 characters
; length, means you have to add leadings zeros if needed.
;
; ZZZNNNNFFFFPP
;
; ZZZ = three digits for the zone number
; NNNN = four digits for the net number
; FFFF = four digits for the node number
; PP = two digits for the point number
;
; Examples: 21:487/523 correspond to 01501E7020B00
; Correspond to the outbound files (path defined above)
; OUT\ZONE.015\01E70020B.*
;
; 2:2426/2070.14 correspond to 002097A08160E
; Correspond to the outbound files (path defined above):
; OUT\ZONE.002\097A0816.PNT\0000000E.*
;
; In your "own" Zone (see above keyword ADRESS) there is
; no extension at ZONE.nnn:
; 2:2426/2070.14 correspond to 002097A08160E
; Correspond to the outbound files (path defined above):
; OUT\ZONE\097A0816.PNT\0000000E.*
;
; The Terminate script NODECONV.TSC belonging to the RINGUP archiv can make
; this conversions for you.
;
;Special treatments for device 1 (maximal 100 are activ)
;String1 String2 String3 Time Error A Aka 1 Aka 2 Aka 3 Aka 4 Aka 5 Aka 6
;-----------------------| |--------| |--------| |---------| |---| | |-----------| |-----------| |-----------| |-----------| |-----------| |-----------|
; All callers on EAZ1 will be rejected; script will terminate and the call
; is reported in NOSUCCES.LOG via STARTBBS.BAT.
/EAZ1 00:00-23:59 -10 N
; All callers on EAZ2 will be rejected; script will terminate and the call
; is reported in NOSUCCES.LOG via STARTBBS.BAT.
/EAZ2 00:00-23:59 -11 N
; Caller 3514013816 is accepted from 2 to 3.30 o'clock only if there is
; Mail for hin in binklley outbound.
3514013816 02:00-03:30 1 N 00200F90BB800 00200F90DDE00
; Caller 1234567 will be rejected if he calls via analogue modem.
1234567 /01 00:00-23:59 - N
1234567 /02 00:00-23:59 - N
; Caller 1234567 will be rejected from 9 to 18 o'clock if he calls using
; X.75.
1234567 09:00-18:00 - N
; Caller 25369943 will be rejected and called back via Terminate host if he
; calls with X.75.
25369943 /0700 00:00-23:59 -200 N
; Caller 25369943 will be rejected and called back via Terminate point system
; if he calls with analogue modem.
25369943 /01 00:00-23:59 -201 N
25369943 /02 00:00-23:59 -201 N
; All other analogue callers has to processed by device 2.
/0101 00:00-23:59 $2 Y
/0102 00:00-23:59 $2 Y
/0201 00:00-23:59 $2 Y
/0202 00:00-23:59 $2 Y
;
;
; The device definitions
;
; It is not allowed to overstep and to change the sequence of each field.
; You have to write the last field ("Carr") with right alignment while
; all other could be filled using left or right alignment.
;
; You can define more than two devices if you deactivate all supernumerary
; definitions by adding ; in the first column. The script always uses the
; first two activated devices even though more than two devices are not
; deactivated.
;
; You have not the right to use 0 (because this terminates the script with
; return to Terminate) and 245 to 255 (reserved for internal use; see above)
; as errorlevel.
;
; Comment: Description of the device used in screen and Log file.
; Error : Errorlevel which is used if a ring appears.
; Nr : Number of this Device in Terminates configuration
; P : Com port of this device (look Terminate Configuration/Communication)
; Rate : Baud rate of this device.
; Init : Init string for this device. If you need an additional Return
; within the init string write "^M" at the desired position. Use
; "~" character for pause of 1/2 second.
; Retur : The modem answers after executing the init string.
; Wait : How long is needed by the device to return "OK" after executing
; the init string. Write this value in thousendth.
; Ring : Which string is returned by the device if a ring appears.
; A : Set to (capital) Y if the script should answer an incoming call;
; if not write (capital) N. You have to set "Restore port on close"
; to "No" in the Terminate Configuration/Communication otherwise
; Terminate will drop down the carrier when terminating the script.
; Answer : This string will be sent to the modem to answer a incoming call
; if you have set the previous option to "Y". Normally you should
; use ATA while few other modems needs ATS0=1 (f. e. USR modems).
; Carr : Maximum time period (in seconds) in which a carrier has to be
; detected by the script. If no carrier is detected the script will
; hang up.
;
;
;Devices (maximal 2 are activ)
;Comment Error Nr P Rate Init Retur Wait Ring A Answer Carr
;-------------| |---| || || |----| |----------------------------| |---| |---| |--------| | |--------| ||
ISDN on Com 4 1 1 4 115200 ATZ OK 1000 RING Y ATA 10
Modem on Com 7 2 2 7 57600 ATZ0 OK 2000 RING Y ATA 30
;
;
; Program definitions for use with the events
;
; A maximum of 32 programs can be defined which can be assigned to the events.
; If you assign such a program to an event the program will be executed
; directly from the script without leaving it (errorlevel method). Please
; do only define programs which can be started from the script without
; problems; f. e. TERMINAT /BOSS will not work!
;
; It is not allowed to overstep and to change the sequence of each field.
;
; Nr : Number of this program, which you have to enter in the evnt defi-
; nitions in the Errorlevel column (@ in front of the errorlevel is
; absolut).
; Program: Path and name of a program including all parameters needed. You
; can use all special parameters of Terminate (!M, !CD, !E, ...;
; Never use !E calling batch files!).
; Defining @SCRIPT <script name> you can call other terminate
; scripts which unfortunately does not work in all cases.
;
;Programs for events (maximal 32 are activ)
;Nr Program
;---| |------------------------------------------------------------------------------------------------------------------------------|
@1 C:\TER500\TM.BAT /SCAN !M
@2 C:\TER500\TERMAIL\TM.EXE /TOSS !M !E
@3 C:\TER500\TERMAIL\TM.EXE /CLEAN !M !E
;
;
; The event definitions
;
; You can deactivate an event by typing ; in the first column of an event
; definition. The script will handle it in the way after executing a one
; tine event of if you deactivate an event from the menu of the script.
;
; You can define up to 64 active events. It is not allowed to overstep and to
; change the sequence of each field. All fields could be filled using left
; or right alignment. It is absolutely neccessary to fill out the last field
; ("O"). You have to use the whole space of the "Time" and "Last" field.
;
; You have not the right to use 0 (because this terminates the script with
; return to Terminate) and 245 to 255 (reserved for internal use; see above)
; as errorlevel.
;
; Comment: Description of the event used in screen and Log file.
; Error : Errorlevel which is used if an event arises. If you want to call
; a program directly from script type in the number of the program
; with a leading @ as errorlevel.
; SMTWTFS: Defines the days on which this event should take place. You have to
; use the capital X character. If an event should not take place on
; a weekday please do not write anything in this column. Instead of
; defining weekdays for an event you can define dates on which the
; event should take place. You have to follow this rules:
; DAY:nn ( nn = day; always two digits, means f. e. 05 for 5): Such
; an event will take place only if this day exists in a month, means
; that DAY:31 will not executed f. e. in february or april.
; DAY:L-n (n = 1-9): Execute the event on the last but one, last
; but two, ... day of a month.
; Time : Time period for the event. You are not allowed to define time
; periods which passes midnight f. e. 23:00-5:00. The script uses
; 24 hour clock always.
; Last : On which day was this event executed the last time. If this event
; arises the script will modify this field. You can fill in a future
; date. In this case the script calculates the following day as
; first appearance of this event. If this day is reached or passed
; over the exact execution day is calculated. If last and today is
; the same day the event is not executed even if the time period
; is not reached.
; O : If it is an one time event type (capital) Y otherwise type N.
;
; Events (maximal 64 are activ)
;Comment Error SMTWTFS Time Last O
;-------------------| |---| |-----| |---------| |--------| |
Poll Boss 10 XXXXXXX 04:30-04:55 01.08.1997 N
Call Outbound-Systems 11 XXXXX 02:00-02:59 01.08.1997 N
Mails-Scannen @1 XXXXXXX 00:00-02:59 01.08.1997 N
Mails-Tossen @2 XXXXXXX 08:00-09:00 01.08.1997 N
Mail-Base cleanen @3 DAY:L 03:00-04:00 01.08.1997 N
Mail-Base cleanen @3 DAY:15 03:00-04:00 01.08.1997 N